<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Watson\Validating\ValidatingTrait;

class VoteWorksPrint extends Model
{
    use SoftDeletes;
    use ValidatingTrait;

    protected $fillable = ['award_id', 'proposition_company_id' , 'works_type_id' , 'name' , 'vote_award_id'];

    protected $rules = [
        'award_id'                      => 'required',
        'proposition_company_id'        => 'required',
        'works_type_id'                 => 'required',
        'name'                          => 'required',
        'vote_award_id'                 => 'required',
    ];

    protected $validationMessages = [
        'award_id.required'                       => '赛事必填',
        'proposition_company_id.required'         => '命题必填',
        'works_type_id.required'                  => '作品类别必填',
        'name.required'                           => '名称必填',
        'vote_award_id.required'                  => '奖项必填',
    ];
}
